package com.ctshk.rpc.order.goods.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * <p>
 *     商品订单--退款审批--req
 * </p>
 *
 * @author 黄利斌
 * @date 2021/6/19 2:09 下午
 */
@Data
@ApiModel(value = "OrderRefundApprovalReq对象",description = "商品订单退款审批req")
public class OrderRefundApprovalReq implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "用户Id")
    private Long userId;

    @NotNull(message = "审批实例Id不能为空")
    @ApiModelProperty(value = "审批实例Id")
    private Long approvalId;

    @NotNull(message = "订单id不能为空")
    @ApiModelProperty(value = "订单id")
    private Long orderId;

    @NotNull(message = "审批状态不能为空")
    @ApiModelProperty(value = "审批状态（0：撤回，3：审批不通过，4：审批通过）")
    private Integer approvalStatus;

    @ApiModelProperty(value = "备注")
    private String comments;

    @ApiModelProperty(value = "额外参数")
    private String extendParams;

    @Valid
    @ApiModelProperty(value = "退款记录列表")
    private List<OrderRefundApprovalRecordReq> orderCommodityRefundReqList;

}
